package com.abel.feign.service;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * Author: Abel.lin
 * Date: Created in 2018/10/10 14:23
 * Company: Abel.Studio
 * Copyright: Copyright (c) 2017
 * Description:
 */
@FeignClient(value = "eureka-producer", fallback = ScheduleServiceImpl.class)
public interface ScheduleService {
    @GetMapping("hello")
    public String hello();

    @GetMapping("bye")
    public String bye(@RequestParam(value = "name") String name);

    @GetMapping("test2")
    public String test2();
}
